﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using System.Data;
using System.Net.Mail;
using System.IO;

public partial class _Default : System.Web.UI.Page
{
    dbConn conn = new dbConn();  string FC,SC,TC,fname,lname,email;
    SiteStatistics statistics = new SiteStatistics();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {   
            conn.populateState(ddState);
        }
    }

    //For Calender Control
    //protected void Calendar1_SelectionChanged(object sender, EventArgs e)
    //{
    //    // Popup result is the selected date
    //    PopupControlExtender1.Commit(Calendar1.SelectedDate.ToShortDateString());
    //}

    //protected void Calendar2_SelectionChanged(object sender, EventArgs e)
    //{
    //    // Popup result is the selected date
    //    PopupControlExtender2.Commit(Calendar2.SelectedDate.ToShortDateString());
    //}


    private void SetState()
    {
        Session["txtFName"] = txtFName.Text.Trim();
        Session["txtLName"] = txtLName.Text.Trim();
        Session["txtMidName"] = txtMidName.Text.Trim();
        Session["txtEmail"] = txtEmail.Text.Trim();

        if (txtArea.Text != String.Empty  && txtPrefix.Text != String.Empty && txtSuffix.Text != String.Empty )
              Session["Contact#"] = txtArea.Text + "-" + txtPrefix.Text + "-" + txtSuffix.Text;
        else

            Session["Contact#"] = "Not given";
       
        Session["txtMaiden"]  = txtMaiden.Text.Trim();
        Session["txtAdd1"] = txtAdd1.Text.Trim();
        //Session["txtAdd2"] = txtAdd2.Text.Trim();
        if (txtHArea.Text != String.Empty  && txtHPrefix.Text != String.Empty && txtHSuffix.Text != String.Empty )
              Session["Home#"] = txtHArea.Text + "-" + txtHPrefix.Text + "-" + txtHSuffix.Text;
        else

            Session["Home#"] = "Not given";
        Session["ddState"] = ddState.SelectedValue.ToString();
        Session["txtCity"] = txtCity.Text.Trim();
        Session["txtZip"] = txtZip.Text.Trim();
       
        //Session["rbPDegree"] = rbPDegree.SelectedItem.Text ;
      
        //Session["txtPDegree"] = txtPDegree.Text.Trim();
        //Session["txtPMajor"] = txtPMajor.Text.Trim();
        //Session["txtPIns"] = txtPIns.Text.Trim();


        //Session["rbLicense"] = rbLicense.SelectedItem.Text;
        //if (txtField1.Text != string.Empty )
        //    Session["txtField1"] = txtField1.Text.Trim();
        //else
        //    Session["txtField1"] = "--";

        // if (txtLicense1.Text != string.Empty )
        //   Session["txtLicense1"] = txtLicense1.Text.Trim();
        //else
        //    Session["txtLicense1"] = "--";

        //if (txtLExpDate1.Text != string.Empty )
        //    Session["txtLExpDate1"] = txtLExpDate1.Text.Trim();
        //else
        //    Session["txtLExpDate1"] = "--";
       


        //if (txtField2.Text != string.Empty )
        //    Session["txtField2"] = txtField2.Text.Trim();
        //else
        //    Session["txtField2"] = "--";

        // if (txtLicense2.Text != string.Empty )
        //   Session["txtLicense2"] = txtLicense2.Text.Trim();
        //else
        //    Session["txtLicense2"] = "--";

        //if (txtLExpDate2.Text != string.Empty )
        //    Session["txtLExpDate2"] = txtLExpDate2.Text.Trim();
        //else
        //    Session["txtLExpDate2"] = "--";
        Session["rbFall"] =rbFall.SelectedItem.Text;
        Session["txtFall"] = txtFall.Text.Trim();
        Session["rbSpring"]=rbSpring.SelectedItem.Text;
        Session["txtSpring"] = txtSpring.Text.Trim();
        Session["rbSummer"] = rbSummer.SelectedItem.Text;
        Session["txtSummer"] = txtSummer.Text.Trim();
        Session["txtPerform" ] = txtPerform.Text.Trim();
  
    //if (FCFebDate9_10.Checked)
    //{
    //    FC = FebTime9_10.Text + "," + FebDate9_10.Text;
    //    Session["1stChoice"] = FC;
    //}
    //else if (FCFebDate10_11.Checked)
    //{
    //    FC = FebTime10_11.Text + "," + FebDate10_11.Text;
    //    Session["1stChoice"] = FC;

    //}
    //else if (FCFebDate1_2.Checked)
    //{
    //    FC = FebTime1_2.Text + "," + FebDate1_2.Text;
    //    Session["1stChoice"] = FC;

    //}
    //else if (FCFebDate2_3.Checked)
    //{
    //    FC = lblFebTime2_3.Text + "," + lblFebDate2_3.Text;
    //    Session["1stChoice"] = FC;

    //}
    //else if (FCFebDate3_4.Checked)
    //{
    //    FC = lblFebTime3_4.Text + "," + lblFebDate3_4.Text;
    //    Session["1stChoice"] = FC;

    //}

//1st choice
   if (FCFeb11Date9_10.Checked)
    {
        FC = lblFeb11Time9_10.Text + "," + lblFeb11Date9_10.Text;
        Session["1stChoice"] = FC;
    }
    else if (FCFeb11Date10_11.Checked)
    {
        FC = lblFeb11Time10_11.Text + "," + lblFeb11Date10_11.Text;
        Session["1stChoice"] = FC;

    }
    else if (FCFeb11Date1_2.Checked)
    {
        FC = lblFeb11Time1_2.Text + "," + lblFeb11Date1_2.Text;
        Session["1stChoice"] = FC;

    }
   else if (FCFeb11Date2_3.Checked)
   {
       FC = lblFeb11Time2_3.Text + "," + lblFeb11Date2_3.Text;
       Session["1stChoice"] = FC;

   }


   else if (FCFeb11Date3_4.Checked)
    {
        FC = lblFeb11Time3_4.Text + "," + lblFeb11Date3_4.Text;
        Session["1stChoice"] = FC;

    }
    else
    {
        FC = lblFeb11Time4_5.Text + "," + lblFeb11Date4_5.Text;
        Session["1stChoice"] = FC;

    }
//2nd choice

   if (SCFeb11Date9_10.Checked)
    {
        SC = lblFeb11Time9_10.Text + "," + lblFeb11Date9_10.Text;
        Session["2ndChoice"] = SC;
    }
    else if (SCFeb11Date10_11.Checked)
    {
        SC = lblFeb11Time10_11.Text + "," + lblFeb11Date10_11.Text;
        Session["2ndChoice"] = SC;

    }
    else if (SCFeb11Date1_2.Checked)
    {
        SC = lblFeb11Time1_2.Text + "," + lblFeb11Date1_2.Text;
        Session["2ndChoice"] = SC;

    }
   else if (SCFeb11Date2_3.Checked)
   {
       SC = lblFeb11Time2_3.Text + "," + lblFeb11Date2_3.Text;
       Session["2ndChoice"] = SC;

   }


   else if (SCFeb11Date3_4.Checked)
   {
       SC = lblFeb11Time3_4.Text + "," + lblFeb11Date3_4.Text;
       Session["2ndChoice"] = SC;

   }
    else
   {
       SC = lblFeb11Time4_5.Text + "," + lblFeb11Date4_5.Text;
       Session["2ndChoice"] = SC;

   }
//3rd Choice
    if (TCFeb11Date9_10.Checked)
    {
        TC = lblFeb11Time9_10.Text + "," + lblFeb11Date9_10.Text;
        Session["3rdChoice"] = TC;
    }
    else if (TCFeb11Date10_11.Checked)
    {
        TC = lblFeb11Time10_11.Text + "," + lblFeb11Date10_11.Text;
        Session["3rdChoice"] = TC;

    }
    else if (TCFeb11Date1_2.Checked)
    {
        TC = lblFeb11Time1_2.Text + "," + lblFeb11Date1_2.Text;
        Session["3rdChoice"] = TC;

    }
    else if (TCFeb11Date2_3.Checked)
    {
        TC = lblFeb11Time2_3.Text + "," + lblFeb11Date2_3.Text;
        Session["3rdChoice"] = TC;

    }

    else if (TCFeb11Date3_4.Checked)
    {
        TC = lblFeb11Time3_4.Text + "," + lblFeb11Date3_4.Text;
        Session["3rdChoice"] = TC;

    }
   
 else 
    {
        TC = lblFeb11Time4_5.Text + "," + lblFeb11Date4_5.Text;
        Session["3rdChoice"] = TC;

    }
       
   
        
            
    }

   
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        if (Page.IsValid)
        {
            SetState();
            Update();
            SendMail();
            Response.Redirect("thankyou.aspx");
           
        }
        //fname = Session["txtFName"].ToString();
        //lname = Session["txtLName"].ToString();
        //email = Session["txtEmail"].ToString();
        fname = txtFName.Text.Trim();
        lname = txtLName.Text.Trim();
        email = txtEmail.Text.Trim();
        statistics.AddLog(fname, lname, email);
    }

    private void SendMail()
    {
        string from, to, cc, subject, _body;
        from = "Nursing@avila.edu";
        to = "Nursing@avila.edu";
        cc = "Mallika.Ramaswamy@Avila.edu";
        subject = "Nursing Supplemental Application";
        _body = "<table style='width: 850px; ' > ";
        _body += "<tr align ='center' valign = 'middle' style='width:850px;'><td  colspan=6  valign = 'middle' bgcolor='#FFFFFF'><div align=center color='#FFFFFF' ><font size=4 color='#5B148B'><strong>Avila University</strong></font></div><br />";
        _body += "&nbsp;&nbsp;</b></font></div></td></tr>";
        _body += "<tr align ='center' style='width:850px;' ><td colspan=6  bgcolor=#5B148B><div style='width:850px;'   align=center><font color=#FFFFFF face=arial size=2><b>The following data was submitted on: " + DateTime.Now.ToString();
        _body += "&nbsp;&nbsp;</b></font></div></td></tr></table>";
        _body += "<table style='width: 850px; ' > ";

        _body += "<tr><th width=129 align=left valign=middle style=width: 90px> First Name  </th>";
        _body += "<td width=225 align=left valign=middle style=width: 90px>" + txtFName.Text.Trim() + "</td>";
        _body += " <th width='140' align=left valign=middle style=width: 100px> Last Name  </th>";
        _body += " <td width='92' align=left valign=middle style=width: 175px>" + txtLName.Text.Trim() + "</td>";
        _body += " <th width='139' align=left valign=middle style=width: 90px>Middle Name</th>";
        _body += " <td width='125' align=left valign=middle style=width: 140px>" + txtMidName.Text.Trim() + "</td> </tr>";

        _body += "<tr><th width=129 align=left valign=middle style=width: 90px> Email   </th>";
        _body += "<td width=225 align=left valign=middle style=width: 90px>" + txtEmail.Text.Trim() + "</td>";
        _body += " <th width='140' align=left valign=middle style=width: 100px> Contact Phone#   </th>";
        _body += " <td width='92' align=left valign=middle style=width: 175px>" + Session["Contact#"].ToString() + "</td>";
        _body += " <th width='139' align=left valign=middle style=width: 90px>Maiden Name </th>";
        _body += " <td width='125' align=left valign=middle style=width: 140px>" + txtMaiden.Text.Trim() + "</td> </tr>";

        _body += "<tr><th width=129 align=left valign=middle style=width: 90px> Address Line1   </th>";
        _body += "<td width=225 align=left valign=middle style=width: 90px>" + txtAdd1.Text.Trim() + "</td>";
        _body += " <th width='140' align=left valign=middle style=width: 100px> Address Line2  </th>";
        _body += " <td width='92' align=left valign=middle style=width:175px></td>";
        _body += " <th width='139' align=left valign=middle style=width: 90px>Home Phone  </th>";
        _body += " <td width='125' align=left valign=middle style=width: 140px>" + Session["Home#"].ToString() + "</td> </tr>";

        _body += "<tr><th width=129 align=left valign=middle style=width: 90px> State    </th>";
        _body += "<td width=225 align=left valign=middle style=width: 90px>" + ddState.SelectedValue.ToString() + "</td>";
        _body += " <th width='140' align=left valign=middle style=width: 100px> City   </th>";
        _body += " <td width='92' align=left valign=middle style=width: 175px>" + txtCity.Text.Trim() + "</td>";
        _body += " <th width='139' align=left valign=middle style=width:90px>Zip  </th>";
        _body += " <td width='125' align=left valign=middle style=width: 140px>" + txtZip.Text.Trim() + "</td> </tr>";
        _body += "<tr> <td align=left colspan =6 ><br /> </td></tr></table>";
        //_body += "<table style='width: 850px; ' > ";
        //_body += "<tr><td style=width: 91px><br /></td> <td style='width: 89px'></td> <td style='width:100px'></td>";
        //_body += " <td style='width: 146px'></td>  <td style='width: 87px'></td> <td style='width: 118px'></td>	</tr>";
	   
	  
	   

	    
        //_body += "<tr> <th align=left colspan =2 >  Do you have any previous degree? If Yes   </th>";
        //_body += " <th align=left colspan =1 >Degree</th><th align=left colspan =1 >Major</th><th align=left colspan =1 >Institution</th> </tr>";
        //_body += "<tr > <td align=left colspan =2 >" + rbPDegree.SelectedItem.Text  + "</td>";


        //_body += "  <td align=left colspan =1 >"+ txtPDegree.Text.Trim() + "</td>";

        //_body += " <td align=left colspan =1 >" + txtPMajor.Text.Trim() + "</td>";
        //_body += " <td align=left colspan =1 >" + txtPIns.Text.Trim() + "</td> </tr>";
        //_body += "<tr> <th align=left colspan =5 ><br /> </th></tr>";

        //_body += "<tr> <th align=left colspan =1 ><b>Other Diploma/Certificate/Licensure Earned (If any):</b> </th>";
        //_body += "<td align=left colspan =1 >" + rbLicense.SelectedItem.Text + "</td><th align=left colspan =4></th></tr></table>";
        //_body += " <table  cellpadding=0 cellspacing=0 border=0  width =850><tr> ";
        //_body += "<tr><th align=left style=width:70px;>Field</th><th align=left style=width:86px;>License #</th>";
        //_body += "<th align=left style=width:90px;>Expiration Date</th><th align=left style=width:110px;></th>";

        //_body += "<tr><td align=left style=width:70px;> " + Session["txtField1"].ToString()+ "</td>";
        //_body += "<td align=left style=width:86px;>" + Session["txtLicense1"].ToString() + "</td>";
        //_body += "<td align=left style=width:100px;>" + Session["txtLExpDate1"].ToString() + "</td></tr>";

        //_body += "<tr><td align=left style=width:70px;> " +  Session["txtField2"].ToString() + "</td>";
        //_body += "<td align=left style=width:86px;>" +  Session["txtLicense2"].ToString() + "</td>";
        //_body += "<td align=left style=width:100px;>" + Session["txtLExpDate2"].ToString() + "</td></tr>";
        //_body += "<tr> <td align=left colspan =6 ><br /> </td></tr></table>";
        _body += " <table  cellpadding=0 cellspacing=0 border=0  width =850px><tr> ";

        _body += "<tr> <th align=left style=width:475px ><b>Courses In Progress/Completed Fall 2012 (Grade if known)</b>  :</th>";
        _body += "<td align=left colspan =2 >" + rbFall.SelectedItem.Text + "</td></tr>";
        _body += "<tr> <td align=left colspan =5 >" + txtFall.Text + "</td>";
        _body += "<td align=left colspan =2 ></td></tr>";

        _body += "<tr> <th align=left style=width:475px ><b>Courses Planned for Spring 2013 </b>  :</th>";
        _body += "<td align=left colspan =2 >" + rbSpring.SelectedItem.Text + "</td></tr>";
        _body += "<tr> <td align=left colspan =5 >" + txtSpring.Text + "</td>";
        _body += "<td align=left colspan =2 ></td></tr>";

        _body += "<tr> <th align=left style=width:475px><b>Courses Planned for Summer 2013 </b>  :</th>";
        _body += "<td align=left colspan =2 >" + rbSummer.SelectedItem.Text + "</td></tr>";
        _body += "<tr> <td align=left colspan =5 >" + txtSummer.Text + "</td></tr></table>";
        _body += " <table  cellpadding=0 cellspacing=0 border=0  width =100%><tr> ";

        _body += "<td align=left colspan =2 ></td></tr>";
        _body += "<tr> <th align=left style=width:100% ><b>If there are any semester(s) where extenuating circumstances may have impacted your academic performance please explain.";
        _body += "</b>:</th></tr>";
         if (txtPerform.Text != "" )
             _body += "<tr> <td align=left colspan =5 >" + txtPerform.Text + "</td>";
         else
             _body += "<tr> <td align=left colspan =5 >" + "----- <br />" + " </td>";
        _body += "<td align=left colspan =2 ></td></tr>";
        _body += "<tr><td align=left style=width:100% ><br /></td></tr></table>";
        _body += " <table  cellpadding=0 cellspacing=0 border=0  width =850px><tr> ";
        _body += "<th align=left colspan =7 > Your 3 Interview Choices are: <br /></th></tr>";
        _body += "<tr><th align=left colspan =5 >1st Choice :</th><td align=left colspan =2 >" + Session["1stChoice"].ToString() + "</td></tr>";
        _body += "<tr><th align=left colspan =5 >2nd Choice :</th><td align=left colspan =2 >" + Session["2ndChoice"].ToString() + "</td></tr>";
        _body += "<tr><th align=left colspan =5 >3rd Choice :</th><td align=left colspan =2 >" + Session["3rdChoice"].ToString() + "</td></tr>";
       
        _body += "</table>";


        SmtpClient MailObj = new SmtpClient("mail.avila.edu");
        MailMessage msg = new MailMessage();
        msg.From = new MailAddress(from.ToString());
        msg.To.Add(new MailAddress(to.ToString()));
        msg.CC.Add(new MailAddress(cc.ToString()));
        msg.Subject = subject.ToString();
        msg.Body = _body.ToString();
        msg.IsBodyHtml = true;
        MailObj.Send(msg);
    }

    private void Update()
    {
        using (SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["prod" ].ConnectionString))
       
        {
            try
            {
                conn.Open();
                SqlCommand Cmd = new SqlCommand("CUS_sp_Nursing_INSERT", conn);
                Cmd.CommandType = CommandType.StoredProcedure;
                Cmd.Parameters.Add("@fname", SqlDbType.VarChar).Value = txtFName.Text.Trim();
                Cmd.Parameters.Add("@lname", SqlDbType.VarChar).Value = txtLName.Text.Trim();
                Cmd.Parameters.Add("@email", SqlDbType.VarChar).Value = txtEmail.Text.Trim();
                Cmd.Parameters.Add("@MiddleName", SqlDbType.VarChar).Value = txtMidName.Text.Trim();
                Cmd.Parameters.Add("@MaidenName", SqlDbType.VarChar).Value = txtMaiden.Text.Trim();
                Cmd.Parameters.Add("@HomePhone", SqlDbType.VarChar).Value = Session["Home#"].ToString();
                Cmd.Parameters.Add("@ContactPhone", SqlDbType.VarChar).Value = Session["Contact#"].ToString();
                Cmd.Parameters.Add("@Address1", SqlDbType.VarChar).Value = txtAdd1.Text.Trim();
                Cmd.Parameters.Add("@Address2", SqlDbType.VarChar).Value = string.Empty;
                Cmd.Parameters.Add("@State", SqlDbType.VarChar).Value = ddState.SelectedValue.ToString();
                Cmd.Parameters.Add("@City", SqlDbType.VarChar).Value = txtCity.Text.Trim();
             
                Cmd.Parameters.Add("@Zip", SqlDbType.VarChar).Value = txtZip.Text.Trim();
                //if (rbPDegree.SelectedValue.ToString() == "True")
                //    Cmd.Parameters.Add("@PDegreeYN", SqlDbType.Bit).Value = 1;
                //else
                //    Cmd.Parameters.Add("@PDegreeYN", SqlDbType.Bit).Value = 0;

                //Cmd.Parameters.Add("@PDegree", SqlDbType.VarChar).Value = txtPDegree.Text.Trim();
                //Cmd.Parameters.Add("@PMajor", SqlDbType.VarChar).Value = txtPMajor.Text.Trim();
                //Cmd.Parameters.Add("@PIns", SqlDbType.VarChar).Value = txtPIns.Text.Trim();
                //if (rbLicense.SelectedValue.ToString() == "True")
                //    Cmd.Parameters.Add("@LicenseYN", SqlDbType.Bit).Value = 1;
                //else
                //    Cmd.Parameters.Add("@LicenseYN", SqlDbType.Bit).Value = 0;

                //Cmd.Parameters.Add("@LField1", SqlDbType.VarChar).Value = txtField1.Text.Trim();
                //Cmd.Parameters.Add("@License1#", SqlDbType.VarChar).Value = txtLicense1.Text.Trim();
                //if (txtLExpDate1.Text != "")
                //    Cmd.Parameters.Add("@ExpDate1", SqlDbType.VarChar).Value = txtLExpDate1.Text.Trim();
                //else
                //    Cmd.Parameters.Add("@ExpDate1", SqlDbType.VarChar).Value = null;
                //Cmd.Parameters.Add("@LField2", SqlDbType.VarChar).Value = txtField2.Text.Trim();
                //Cmd.Parameters.Add("@License2#", SqlDbType.VarChar).Value = txtLicense2.Text.Trim();
                //if (txtLExpDate2.Text != "")
                //    Cmd.Parameters.Add("@ExpDate2", SqlDbType.VarChar).Value = txtLExpDate2.Text.Trim();
                //else
                //    Cmd.Parameters.Add("@ExpDate2", SqlDbType.VarChar).Value = null;

                if (rbFall.SelectedValue.ToString() == "True")
                    Cmd.Parameters.Add("@FallYN", SqlDbType.Bit).Value = 1;
                else
                    Cmd.Parameters.Add("@FallYN", SqlDbType.Bit).Value = 0;
                Cmd.Parameters.Add("@FallGrade", SqlDbType.VarChar).Value = txtFall.Text.Trim();
                if (rbSpring.SelectedValue.ToString() == "True")
                    Cmd.Parameters.Add("@SpringYN", SqlDbType.Bit).Value = 1;
                else
                    Cmd.Parameters.Add("@SpringYN", SqlDbType.Bit).Value = 0;
                Cmd.Parameters.Add("@SpringGrade ", SqlDbType.VarChar).Value = txtSpring.Text.Trim();
                if (rbSummer.SelectedValue.ToString() == "True")
                    Cmd.Parameters.Add("@SummerYN", SqlDbType.Bit).Value = 1;
                else
                    Cmd.Parameters.Add("@SummerYN", SqlDbType.Bit).Value = 0;
                Cmd.Parameters.Add("@SummerGrade", SqlDbType.VarChar).Value = txtSummer.Text.Trim();
                Cmd.Parameters.Add("@Performance", SqlDbType.VarChar).Value = txtPerform.Text.Trim();
                Cmd.Parameters.Add("@Interview1", SqlDbType.VarChar).Value = FC;
                Cmd.Parameters.Add("@Interview2", SqlDbType.VarChar).Value = SC;
                Cmd.Parameters.Add("@Interview3", SqlDbType.VarChar).Value = TC;

                Cmd.ExecuteNonQuery();
            }
            catch (SqlException e)
            {
                string errMsg = "Sql Exception Caught " + e.Message.ToString();
                string res = e.Message;
                Response.Write("Error: " + errMsg);

            }
            finally
            {
                conn.Close();

            }
        }
    }
    protected void FCCustomValidator_ServerValidate(object source, ServerValidateEventArgs args)
    {
        args.IsValid = FCFeb11Date9_10.Checked || FCFeb11Date10_11.Checked || FCFeb11Date11_12.Checked || FCFeb11Date1_2.Checked || FCFeb11Date2_3.Checked || FCFeb11Date3_4.Checked || FCFeb11Date4_5.Checked;

    }
    protected void SCCustomValidator_ServerValidate(object source, ServerValidateEventArgs args)
    {

        args.IsValid = SCFeb11Date9_10.Checked || SCFeb11Date10_11.Checked || SCFeb11Date11_12.Checked || SCFeb11Date1_2.Checked || SCFeb11Date2_3.Checked || SCFeb11Date3_4.Checked || SCFeb11Date4_5.Checked;


    }
    protected void TCCustomValidator_ServerValidate(object source, ServerValidateEventArgs args)
    {
        args.IsValid =  TCFeb11Date9_10.Checked || TCFeb11Date10_11.Checked || TCFeb11Date11_12.Checked || TCFeb11Date1_2.Checked || TCFeb11Date2_3.Checked  || TCFeb11Date3_4.Checked ||  TCFeb11Date4_5.Checked;

    }

   

    





    
}
